﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class K0412
    {
        public K0412()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            InitializeComponent();
            SDSA = "0412";
        }
        public override void LOADALL()
        {
            base.LOADALL();
            if (SDSA.Length == 0) return;
            if (TBMain.Rows.Count > 0)
                return;
            if (DBSDDAT.ContainsKey(SDSA))
            {
                DBSDDAT.Remove(SDSA);
            }
            dwData = TBMain.NewRow();
            TMV.SetUpNewRow(ref dwData, SDSA);
            dwData["KEY"] = "DF";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:生产类型");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("生产类型");
            dwData["VALUE"] = "000000000";
            TMV.Save(dwData);
            dwData["KEY"] = "DE";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:Equalize");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("Equalize");
            dwData["VALUE"] = "000000000";

            TMV.Save(dwData);
            dwData["KEY"] = "DS";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:保护");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("保护");
            dwData["VALUE"] = "000000000";
             TMV.Save(dwData);
            dwData["KEY"] = "DK";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:直边");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("直边");
            dwData["VALUE"] = "000000000";
             TMV.Save(dwData);
            dwData["KEY"] = "DN";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:缝样");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("缝样");
            dwData["VALUE"] = "000000000";
            TMV.Save(dwData);
            
            dwData["KEY"] = "DD";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:Duo");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("双面印花");
            dwData["VALUE"] = "000000000";
       
            TMV.Save(dwData);
            dwData["KEY"] = "ET";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:效果");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("效果");
            dwData["VALUE"] = "000000000";
             
            TMV.Save(dwData);
            dwData["KEY"] = "BO";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:边");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:边");
            dwData["VALUE"] = "000000000";
          
            TMV.Save(dwData);
            dwData["KEY"] = "AF";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("抗皱处理");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("抗皱处理");
            dwData["VALUE"] = "000000000";
            TMV.Save(dwData);

            dwData["KEY"] = "VF";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("抗皱前处理");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("抗皱前处理");
            dwData["VALUE"] = "000000000";
            
            TMV.Save(dwData);
            dwData["KEY"] = "VU";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("纯色前处理");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("纯色前处理");
            dwData["VALUE"] = "000000000";
           
            TMV.Save(dwData);
            dwData["KEY"] = "EF";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("首次染色");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("首次染色");
            dwData["VALUE"] = "000000000";
 
            TMV.Save(dwData);
            dwData["KEY"] = "ED";
            dwData["DES"] = Helpers.Helper.ConvertGB2312To8859P1("印花:首次印花");
            dwData["SDES"] = Helpers.Helper.ConvertGB2312To8859P1("首次印花");
            dwData["VALUE"] = "000000000";
           
            TMV.Save(dwData);
            LOADALL();
        }
    }
}
